package com.six.vo;

import java.sql.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 枚举数据类型
 * 
 */
@Entity
@Table(name="WMS_T_ENUM_T")
public class EnumType {
	private int enumtCode;// VARCHAR(16) 枚举类型编码
	private String enumtName;// NVARCHAR2(60) 枚举类型名称
	private String enumtNote;// NVARCHAR2(200) 枚举类型描述述
	private int enumtSeq;// INTEGER 显示顺序
	private int enumtEditable;// SMALLINT 用户是否可增减枚举值
	private Date enumtEditTime;// DATE 最后编辑时间
	private int enumtIsDel;// SMALLINT 是否已被删除
	private Set<EnumData> enumData;// 一个枚举类型下有多个枚举值
	
	public EnumType() {
		super();
	}
	public EnumType(int enumtCode, String enumtName, String enumtNote,
			int enumtSeq, int enumtEditable, Date enumtEditTime,
			int enumtIsDel, Set<EnumData> enumData) {
		super();
		this.enumtCode = enumtCode;
		this.enumtName = enumtName;
		this.enumtNote = enumtNote;
		this.enumtSeq = enumtSeq;
		this.enumtEditable = enumtEditable;
		this.enumtEditTime = enumtEditTime;
		this.enumtIsDel = enumtIsDel;
		this.enumData = enumData;
	}
	@Id
	@GeneratedValue
	public int getEnumtCode() {
		return enumtCode;
	}
	public void setEnumtCode(int enumtCode) {
		this.enumtCode = enumtCode;
	}
	public String getEnumtName() {
		return enumtName;
	}
	public void setEnumtName(String enumtName) {
		this.enumtName = enumtName;
	}
	public String getEnumtNote() {
		return enumtNote;
	}
	public void setEnumtNote(String enumtNote) {
		this.enumtNote = enumtNote;
	}
	public int getEnumtSeq() {
		return enumtSeq;
	}
	public void setEnumtSeq(int enumtSeq) {
		this.enumtSeq = enumtSeq;
	}
	public int getEnumtEditable() {
		return enumtEditable;
	}
	public void setEnumtEditable(int enumtEditable) {
		this.enumtEditable = enumtEditable;
	}
	public Date getEnumtEditTime() {
		return enumtEditTime;
	}
	public void setEnumtEditTime(Date enumtEditTime) {
		this.enumtEditTime = enumtEditTime;
	}
	public int getEnumtIsDel() {
		return enumtIsDel;
	}
	public void setEnumtIsDel(int enumtIsDel) {
		this.enumtIsDel = enumtIsDel;
	}
	@OneToMany(cascade=CascadeType.ALL)
	public Set<EnumData> getEnumData() {
		return enumData;
	}
	public void setEnumData(Set<EnumData> enumData) {
		this.enumData = enumData;
	}
	

}
